package com.qf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * ElasticSearch分页对象
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Page<T> {

    //当前页
    private Integer page = 1;
    //每页显示多少条
    private Integer pageSize = 10;
    //总页码
    private Integer pageCount;
    //数据总条数
    private Integer dataSum;
    //数据内容
    private T datas;
    //分页的url
    private String url;
}
